<?$this->extend("layout/default")?>

	<div id="tabs">
	<ul>
		<li><a href="#courriers"> Courriers </a></li>
		<li><a href="#prints"> Impressions </a></li>
	</ul>
	<div id="courriers">
		<div class="configbox corner">
				<?=$this->inc("impressions/courriers",array("courriers"=>$courriers,"contact"=>$contact))?>
		</div>
	</div>
	<div id="prints">
		<div class="configbox corner">
				<?=$this->inc("impressions/prints")?>
		</div>
	</div>	
</div>
<script>
<?php
$idSelected = 0;  
if(isset($_GET["courriers"]))
	$idSeleted = 0;
if(isset($_GET["prints"]))
	$idSeleted = 1;
if(isset($_GET["export"]))
	$idSeleted = 2;

 
?>

$(document).ready(function() {
	$( "#tabs" ).tabs("select", <?=$idSeleted?> );
});
</script>
